package com.xnyzc.lhy.finance.service.cashwithdrawal;

import com.xnyzc.lhy.common.entity.Rv;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.finance.entity.cashwithdrawal.OaDCashWithdrawal;
import com.xnyzc.lhy.finance.params.dto.cashwithdrawal.OaCashWithdrawalRecordDTO;

import java.math.BigDecimal;

/**
 * <p>
 * 司机提现表 服务类
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-16
 */
public interface IOaDCashWithdrawalService extends IService<OaDCashWithdrawal> {

    /**
     * 获取提现记录
     * @param oaCashWithdrawalRecordDTO 司机ID
     * @return List
     */
    Rv getCashDrawalRecord(OaCashWithdrawalRecordDTO oaCashWithdrawalRecordDTO);

    /**
     * 获取提现详情
     * @param cashId 提现ID
     * @return Object
     */
    Rv getCashWithdrawalInfo(Long cashId);

    /**
     * 获取持卡人、银行卡、可提现金额等信息
     * @param driverId 司机ID
     * @return Object
     */
    Rv getCashWithdrawalDetial(Long driverId);

    /**
     * 提现
     * @param driverId 司机ID
     * @param amount 提现金额
     * @return Map
     */
    Rv driverCashWithdrawal(Long driverId, BigDecimal amount);

    /**
     * 清除提现次数
     */
    void clearDriverCashWithdrawal();

}
